package com.chang.soul.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xiaoqingyang@vip.henu.edu.cn
 * @date 2021/3/24 21:45
 */
@Data
@ApiModel("返回客户端数据实体类")
public class Result<T> {
    @ApiModelProperty(
            value = "状态码",
            required = true
    )
    private int status;
    @ApiModelProperty(
            value = "错误描述信息",
            required = true
    )
    private String msg;
    @ApiModelProperty(
            value = "返回体报文",
            required = true
    )
    private T results;

    @ApiModelProperty(
            value = "备用扩展",
            required = false
    )
    private Object spare;

    public Result() {
    }

}
